package com.atgugui.eduucenter;

import org.apache.catalina.User;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * service-ucenter模块的启动类
 */
@SpringBootApplication
@MapperScan(basePackages = "com.atgugui.eduucenter.mapper")
@ComponentScan(basePackages = {"com.atgugui"})
@EnableCaching // 开启缓存
@EnableSwagger2 // 开启Swagger接口测试
@EnableFeignClients
@EnableDiscoveryClient // 开启nacos服务注册中心服务发现
public class UserCenterApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserCenterApplication.class,args);
    }
}
